package com.baixiaowen.disruptor.DisruptorHigh高准操作;

import com.lmax.disruptor.EventHandler;

public class Handler3 implements EventHandler<Trade> {
    @Override
    public void onEvent(Trade event, long sequence, boolean endOfBatch) throws Exception {
        System.err.println("Handler3 : NAME=" + event.getName() + " ID=" + event.getId() + " PRICE=" + event.getPrice() + " INSTANCE=" + event.toString() );
        if (endOfBatch) {
            System.err.println("Handler3 is last one");
        }
    }
}
